package com.dch.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.dch.enums.IsVirtualEnum;
import com.dch.enums.StatusEnum;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "user_info")
public class UserInfo {
    @TableId(type = IdType.INPUT)
    private Long userId;
    private String partnerId;
    private String oemId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private IsVirtualEnum isVirtual;
    //@TableField(exist = false)//
    @Version// 乐观锁标记version
    private Integer version;
    private StatusEnum status;
}
